score = input("请输入0~100的成绩：")
if score.isdigit():
    if int(score) < 0 or int(score) > 100:
        print("输入的成绩不在0~100的范围内")
    elif 85 <= int(score) <= 100:
        print("优秀")
    elif 60 <= int(score) < 85:
        print("良好")
    else:
        print("不及格")
else:
    print("你输入的不是数字")